﻿using WebApplication1.Core.DataTransferObject;

namespace WebApplication1.Core.ServiceContracts {
    public interface ILouYuanService {

        public Task<LouYuanResponse?> GetLouYuanByLouYuanID(ushort? LouYuanID);
        public Task<IEnumerable<LouYuanResponse>?> GetLouYuanByMingCheng(string? mingCheng);
        public Task<IEnumerable<LouYuanResponse>> GetAllLouYuan();

        public Task<LouYuanResponse> AddLouYuan(LouYuanRequest? LouYuanAddRequest);

        public Task<LouYuanResponse?> UpdateLouYuan(LouYuanRequest? LouYuanUpdateResponse);

        public Task<bool> DeleteLouYuan(ushort? LouYuanID);
    }
}
